package com.shop.cereshop.commons.domain.voucher;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 代金券表实体类
 */
@Data
@TableName("cere_agent_voucher")
public class CereAgentVoucher {

  @TableId(value = "voucher_id", type = IdType.AUTO)
  private Long voucherId;

  @ApiModelProperty(value = "代金券面额")
  private BigDecimal faceValue;

  @ApiModelProperty(value = "使用说明")
  private String remark;

  @ApiModelProperty(value = "状态：0=未启用，1=启用")
  private Integer state;

  @ApiModelProperty(value = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  @ApiModelProperty(value = "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;

  @ApiModelProperty(value = "逻辑删除：0=未删除，1=已删除")
  private Integer deleted;
}
